package com.gmt.controller;

import com.gmt.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;

/**
 * @author John.zhang
 * @version Id: UserController, v 1.0 2020/11/9 17:58 ZhiYong Exp $
 */

@RestController
public class UserController {

    @Value("${user.username}")
    private String username;

    @Value("${user.address}")
    private String address;

    @Autowired
    private User user;

    @GetMapping("user/hello")
    public String hello() {
        return "Hello Word " + username + " " + address + " " + user;
    }


}
